package com.yss.sofa.report.engine.series;

import java.util.HashSet;
import java.util.Set;

public class CustomSeries extends Series{
	private static final long serialVersionUID = 5624183463074176720L;
	private String clazz;
	private Set<String> params=new HashSet<String>();
	protected CustomSeries(int type) {
		super(type);
	}
	public CustomSeries(){
		this(TYPE_CUSTOM);
	}
	@Override
	public void assignTo(Series series){
		CustomSeries _=(CustomSeries)series;
		super.assignTo(_);
		_.clazz=this.clazz;
		_.params.clear();
		_.params.addAll(this.params);
	}
	@Override
	public Series create() {
		CustomSeries _=new CustomSeries();
		this.assignTo(_);
		return _;
	}
	public String getClazz() {
		return clazz;
	}
	public Set<String> getParams() {
		return params;
	}
}
